package com.fs.user.service;

import com.fs.pandaFund.common.exception.ExistPhoneException;
import com.fs.pandaFund.common.pojo.User;
import com.fs.user.vo.LoginBean;

/**
 * Author:HOU
 * date:2023/2/11  17:17
 * 案例:
 **/
public interface UserService {

    /**
     *
     *注册
     * @param user
     * @return void
     * @author xxx
     * @date 2023/2/13
     */
    void enroll (User user);



    /**
     *
     *判断电话是否注册
     * @param phone
     * @return void
     * @author xxx
     * @date 2023/2/13
     */
    void ifExistPhone(String phone) throws ExistPhoneException;

    void loginByPassword(LoginBean loginBean) throws Exception;



}
